package com.sright.bcard.content.share.service;

import com.sright.bcard.common.service.share.dto.LoginUser;
import com.sright.bcard.common.service.share.dto.content.TagDTO;
import com.sright.common.response.SrightResponse;

import java.util.List;

/**
 * @author peter
 * @description
 * @date 2020/6/4
 */
public interface TagService {

    /**
     * 添加标签
     * @param: name
     * @return java.lang.Boolean
     * @author jinxuebin
     * @date 2020/6/4 11:21 上午
    */
    SrightResponse<Long> addTag(String name, LoginUser loginUser);

    /**
     * 删除标签
     * @param: id
     * @return java.lang.Boolean
     * @author jinxuebin
     * @date 2020/6/4 11:21 上午
    */
    SrightResponse<Boolean> removeTag(Long id, LoginUser loginUser);

    /**
     * 查询标签
     * @param: name
     * @return java.util.List<com.sright.bcard.enterprise.biz.dto.TagDTO>
     * @author jinxuebin
     * @date 2020/6/4 11:21 上午
    */
    SrightResponse<List<TagDTO>> listTag(String name, LoginUser loginUser);

}
